package com.back.network;

import javax.annotation.Resource;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import com.back.network.netty.ProxyServerContainer;

@SpringBootApplication
@MapperScan("com.back.network.web.dao")
public class NetWorkApplication implements CommandLineRunner {
	@Resource
	ProxyServerContainer container;

	public static void main(String[] args) {
		SpringApplication.run(NetWorkApplication.class, args);
	}

	@Override
	public void run(String... args) throws Exception {
		container.start();
	}

}
